<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="renderer" content="webkit">
		<title>后台管理主页</title>
		<meta name="keywords" content="">
		<meta name="description" content="">
		<link rel="shortcut icon" href="favicon.ico">
		<link href="__STATIC__/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
		<link href="__STATIC__/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
		<link href="__STATIC__/css/animate.css" rel="stylesheet">
		<link href="__STATIC__/css/style.css?v=4.1.0" rel="stylesheet">
		<link href="__STATIC__/css/login_zx.css?v=4.1.0" rel="stylesheet">
		<link href="__STATIC__/css/left.css" rel="stylesheet">
	</head>

	<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
		<div id="wrapper">
			<!--左侧导航开始-->
			<nav class="navbar-default navbar-static-side" role="navigation">
				<div class="nav-close"><i class="fa fa-times-circle"></i>
				</div>
				<div class="sidebar-collapse">
					<ul class="nav" id="side-menu">
						<li class="nav-header">
							<div class="dropdown profile-element">
								<a data-toggle="dropdown" class="dropdown-toggle" href="javascript:;">
									<span class="clear">
                                    <span class="block m-t-xs" style="font-size:20px;">
                                        <strong class="font-bold">logo</strong>
                                    </span>
									</span>
								</a>
							</div>
							<div class="logo-element">logo
							</div>
						</li>
						
						<li>
							<a href="#1">
								<i class="fa fa-cube"></i>
								<span class="nav-label">运营</span>
								<span class="fa arrow"></span>
							</a>
							<ul class="nav nav-second-level">
						
								<li>
									<a class="J_menuItem" href="__ROOT__/index.php/Administration/system/index">公告管理</a>
								</li>
								<li>
									<a class="J_menuItem" href="__ROOT__/index.php/Administration/system/tool_gl">用户管理</a>
								</li>
					
								<li>
									<a class="J_menuItem" href="__ROOT__/index.php/Administration/Tool/tool_hd">订单管理</a>
								</li>
								<li>
									<a class="J_menuItem" href="__ROOT__/index.php/Administration/Tool/tool_xx_2">商城配置</a>
								</li>
								<li>
									<a class="J_menuItem" href="__ROOT__/index.php/Administration/Tool/tool_mail">房间管理</a>
								</li>
								<li>
									<a class="J_menuItem" href="__ROOT__/index.php/Administration/Tool/tool_tx">提现管理</a>
								</li>
									
								<li>
									<a class="J_menuItem" href="__ROOT__/index.php/Administration/Tool/tool_gongg">系统公告</a>
								</li>
								<li>
									<a class="J_menuItem" href="__ROOT__/index.php/Administration/Tool/tool_maila">系统邮件</a>
								</li>
								<li>
									<a class="J_menuItem" href="__ROOT__/index.php/Administration/Tool/tool_reward">比赛场配置</a>
								</li>
								<li>
									<a class="J_menuItem" href="__ROOT__/index.php/Administration/Tool/tool_gg">亲友圈管理</a>
								</li>
						
								<li>
									<a class="J_menuItem" href="__ROOT__/index.php/Administration/Tool/tool_hyvip">VIP商城配置</a>
								</li>
						
								<li>
									<a class="J_menuItem" href="__ROOT__/index.php/Administration/Tool/tool_game">邀请好友配置</a>
								</li>
						
								<li>
									<a class="J_menuItem" href="__ROOT__/index.php/Administration/Tool/tool_turntable">幸运转盘配置</a>
								</li>
						
							</ul>
						</li>
					
						<li>
							<a href="javascript:;"><i class="fa fa-desktop"></i> <span class="nav-label">管理</span><span class="fa arrow"></span></a>
							<ul class="nav nav-second-level">
								<li>
									<a class="J_menuItem" href="{:url('rule/rule_list')}">权限管理</a>
								</li>
								<li>
									<a class="J_menuItem" href="{:url('rule/rule_group')}">用户组管理</a>
								</li>
								<li>
									<a class="J_menuItem" href="{:url('account/account_details')}">后台账号管理</a>
								</li>
							</ul>
						</li>
						
					</ul>
				</div>
			</nav>
			<!--左侧导航结束-->
			<!--右侧部分开始-->
			<div id="page-wrapper" class="gray-bg dashbard-1">
				<div class="row border-bottom">
					<nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
						<div class="navbar-header">
							<a class="navbar-minimalize minimalize-styl-2 btn btn-info " href="javascript:;"><i class="fa fa-bars"></i> </a>
						</div>
						<ul class="nav navbar-top-links navbar-right">
							<li class="dropdown" id="left_d">
								<a class="dropdown-toggle count-info" data-toggle="dropdown">
									<i class="fa fa-edit"></i> <span>修改密码</span>
								</a>
							</li>
							<li class="dropdown" onclick="location='__ROOT__/index.php/admin/user/loginOut'">
								<a class="dropdown-toggle count-info" data-toggle="dropdown" href="">
									<i class="fa fa-power-off"></i> <span>退出</span>
								</a>
							</li>
						</ul>
					</nav>
				</div>
				<div class="row J_mainContent" id="content-main">
					<iframe id="J_iframe" width="100%" height="100%" src="{:url('left/index')}" frameborder="0" data-id="index.html" seamless></iframe>
				</div>
				<!--修改密码模态框-->
				<div class="left_tc" id="left_c">
					<div class="left_nr">
						<div class="ibox-content">
	                        <form role="form" class="form-inline">
	                            <div class="form-group">
	                            	<span>　原密码：</span>

	                                <input type="text" placeholder="请输入原始密码" name="oldpwd" id="oldpwd" class="form-control">
	                            </div>　
	                            <div class="form-group">
	                            	<span>　新密码：</span>
	                                <input type="text" placeholder="请输入新密码"  name="newpwd" id="newpwd"class="form-control">
	                            </div>　
	                            <div class="form-group">
	                            	<span>确认密码：</span>
	                                <input type="text" placeholder="再次输入"  name="reppwd" id="reppwd" class="form-control">
	                            </div>　
	                            <input type="button" value="确认" id="update_password_button" class="btn btn-w-m btn-info">
	                            <input type="button" id="left_g" value="取消" class="btn btn-w-m btn-info">
	                        </form>
	                    </div>
					</div>
				</div>
				
				<!--修改密码模态框结束-->
			</div>
			<!--右侧部分结束-->
		</div>

		<!-- 全局js -->
		<script src="__STATIC__/js/jquery.min.js?v=2.1.4"></script>
		<script src="__STATIC__/js/bootstrap.min.js?v=3.3.6"></script>
		<script src="__STATIC__/js/plugins/metisMenu/jquery.metisMenu.js"></script>
		<script src="__STATIC__/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
		<script src="__STATIC__/js/plugins/layer/layer.min.js"></script>
		<!-- 自定义js -->
		<script src="__STATIC__/js/hAdmin.js?v=4.1.0"></script>
		<script type="text/javascript" src="__STATIC__/js/index.js"></script>
		<!-- 第三方插件 -->
		<!--<script src="__STATIC__/js/plugins/pace/pace.min.js"></script>-->
		<script type="text/javascript">
		if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
		   $("#aHref").removeClass("J_menuItem");
		} else {
		    $("#aHref").addClass("J_menuItem");
		}
			$("#left_g").click(function(){
			  $("#left_c").hide();
			});
			$("#left_d").click(function(){
			  $("#left_c").show();
			});
			
			$("#update_password_button").click(function(){
				if($("#oldpwd").val() == ""){
					alert("请输入原始密码");
					return false;
				}else if($("#newpwd").val() == ""){
					alert("请输入新密码");
					return false;
				}else if($("#reppwd").val() == ""){
					alert("请确认密码");
					return false;
				}else if($("#reppwd").val() != $("#newpwd").val()){
					alert("两次密码输入不一致");
					return false;
				}else{
				$.ajax({
					url:'__ROOT__/index.php/admin/user/Change_password',
					data:{old_password:$("#oldpwd").val(),new_password:$("#newpwd").val()},
					dataType:"json",
					type:"post",
					success:function(response){
						if(response.code == 0) {
							alert(response.msg);
							location.reload();
						} else {
							alert(response.msg); </script> 
							$("#left_c").hide();
							$(location).attr('href',response.url);
						}
					},
					error:function(exception,error_message){
						console.log(exception.responseText);
					}
				})	
				}
			})
			
		</script>

	</body>

</html>